#ifndef TXTDOC_H_HEADER_INCLUDED_B4F2B9B6
#define TXTDOC_H_HEADER_INCLUDED_B4F2B9B6

#include "Document.h"
#include "../definition.h"

class wxTextDocument : public Document
{
public:
    wxTextDocument() : Document() { };
    virtual wxTextCtrl* GetTextCtrl() const = 0;

    virtual bool IsModified() const;
    virtual void Modify(bool mod);

protected:
    virtual bool DoSaveDocument(const STRING& filename);
    virtual bool DoOpenDocument(const STRING& filename);

    DECLARE_NO_COPY_CLASS(wxTextDocument);
    DECLARE_CLASS(wxTextDocument);
};

class TextEditDocument : public wxTextDocument
{
public:
    TextEditDocument() : wxTextDocument() { };
    void SetContent( STRING );
    wxTextCtrl* GetTextCtrl() const;

    DECLARE_NO_COPY_CLASS(TextEditDocument);
    DECLARE_DYNAMIC_CLASS(TextEditDocument)
};

#endif /* TXTDOC_H_HEADER_INCLUDED_B4F2B9B6 */
